package com.leo.springbootmultithreadbasic.synchronizedkey.synchronizedmethod.lockreentrant;

/**
 * 锁重入
 *
 * @author Leo
 * @version V1.0
 */
public class MainDemo {

    public static void main(String[] args) {
        test();
    }

    /**
     * 锁重入
     *
     */
    public static void test() {
        MyService myService = new MyService();
        Thread threadA = new MyThread(myService);
        threadA.start();
    }
}
